#编写一个函数 average(numbers)，计算一个数字列表的平均值
def average(numbers=list):
    total = 0
    for i in numbers:
        total += i
    total /= len(numbers)
    return total
print(average([1,2,3,4,5,6,7,8,9,10]))